package com.woniu.fly.fairmall.db.entity;


import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 管理员表(FairmallManager)实体类
 *
 * @author makejava
 * @since 2020-03-19 14:06:29
 */
public class FairmallManager implements Serializable {
    private static final long serialVersionUID = 908301968358976593L;
    //用户ID
    private Long id;
    //用户名
    private String username;
    //密码
    private String password;
    //姓名
    private String name;
    //性别 性别：0 未知， 1男， 1 女
    private Integer gender;
    //最后一次登陆时间
    private LocalDateTime lastLoginTime;
    //最后一次登陆IP
    private String lastLoginIp;
    //用户类型 0 普通用户，1 身份证认证，2 学生认证
    private Integer userLevel;
    //昵称
    private String nickname;
    //头像地址
    private String avatar;
    //账号状态 0 可用, 1 禁用
    private Integer status;
    //创建时间
    private LocalDateTime addTime;
    //更新时间
    private LocalDateTime updateTime;
    //逻辑删除
    private Boolean deleted;
    //角色列表
    private Integer[] roleIds;

    public static final int ACCOUNT_BAN = 1;
    public static final int ACCOUNT_NORMAL = 0;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public LocalDateTime getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(LocalDateTime lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getLastLoginIp() {
        return lastLoginIp;
    }

    public void setLastLoginIp(String lastLoginIp) {
        this.lastLoginIp = lastLoginIp;
    }

    public Integer getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(Integer userLevel) {
        this.userLevel = userLevel;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public LocalDateTime getAddTime() {
        return addTime;
    }

    public void setAddTime(LocalDateTime addTime) {
        this.addTime = addTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    public Integer[] getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(Integer[] roleIds) {
        this.roleIds = roleIds;
    }
}
